const defaultState = {
  // 城市信息
  city: {
    // name：城市名称
    // point:{经纬度}
  }
}

export default (state = defaultState, action) => {

  let newState = JSON.parse(JSON.stringify(state));
  switch (action.type) {
    case "initCity":
      newState.city = action.value;
      return newState;
      break;
    case "clearCity":
      newState.city = {};
      return newState;
      break;
    default:
      break;
  }


  return state;
}